import tensorflow as tf
freeze_txt = './freeze.txt'
gf = tf.GraphDef()
gf.ParseFromString(open('./model.graphdef', 'rb').read())
with open(freeze_txt,'w')as f:
    for n in gf.node:
        f.write(n.name + '=====>' + n.op)
        f.write('\r\n')